Scenario #2010: Create Self Debitor For Partner With Different Contact Data

UseCase Create Self Debitor For Partner => Debitor: D-3101000 - Test AG - main debitor

Given Properties

name value
partnerPersonTradeName Test AG
billingContactCaption Test AG - billing department
billingContactEmailAddress billing@test-ag.example.org
debitorNumberSuffix 00
billable true
vatId VAT123456
vatCountryCode DE
vatBusiness true
vatReverseCharge false
defaultPrefix tst

partnerPersonUuid

GET /api/hs/office/relations?relationType=PARTNER&personData=Test+AG
=> status: 200 OK 
[ {
  "uuid" : "b149605a-3d2f-43ca-bf0a-209343812bd1",
  "anchor" : {
    "uuid" : "3426b965-f3f5-4dd0-b02a-954bf32e5e08", // Person: Hostsharing eG
    "personType" : "LEGAL_PERSON",
    "tradeName" : "Hostsharing eG",
    "salutation" : null,
    "title" : null,
    "givenName" : null,
    "familyName" : null
  },
  "holder" : {
    "uuid" : "a7d25999-600e-4e14-b3f7-8908d7c01baf", // Person: Test AG
    "personType" : "LEGAL_PERSON",
    "tradeName" : "Test AG",
    "salutation" : null,
    "title" : null,
    "givenName" : null,
    "familyName" : null
  },
  "type" : "PARTNER",
  "mark" : null,
  "contact" : {
    "uuid" : "1d1409d9-4460-4a39-a906-aceba7c29b39", // Contact: Test AG - Hamburg
    "caption" : "Test AG - Hamburg",
    "postalAddress" : {
      "city" : "Hamburg",
      "firm" : "Test AG",
      "street" : "Shanghai-Allee 1",
      "country" : "Germany",
      "zipcode" : "20123"
    },
    "emailAddresses" : {
      "main" : "hamburg@test-ag.example.org"
    },
    "phoneNumbers" : {
      "office" : "+49 40 654321-0"
    }
  }
} ]

In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.

Contact: Test AG - billing department

POST /api/hs/office/contacts
{
  "caption" : "Test AG - billing department",
  "emailAddresses" : {
    "main" : "billing@test-ag.example.org"
  }
}
=> status: 201 CREATED 345bd85d-1389-46d8-af85-6b98f38b435e

generated on 03-06-2025 01:23:38 for branch feature/update-relations-when-updating-partner-person